window.fs = require("fs");
window.path = require("path");

window.electron = require("electron");

window.requestRemoteData = remote.require("./util/request.remote.data");
window.validates = remote.require("./util/validates");
window.helper = remote.require("./util/helper");
window.logger = remote.require("./util/logs");

window.currentWindow = remote.getCurrentWindow();

window.currentWindow.maximizable = false;
window.currentWindow.fullScreenable = false;
window.currentWindow.resizable = false;
window.currentWindow.unmaximize();
// window.currentWindow.restore();
window.currentWindow.show();
window.currentWindow.focus();
window.currentWindow.shadow = true;

Date.prototype.getUTCTime = function () {
    return this.getTime() + this.getTimezoneOffset() * 60 * 1000;
};

Date.prototype.UTCTimeToLocal = function (time) {
    return time - this.getTimezoneOffset() * 60 * 1000;
};
